<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Scenes/BaseScene.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_80876d1476b72d92a9650b7ee3516e4c.html">TeamCurriculumDesign</a></li><li class="navelem"><a class="el" href="dir_1c44a597e253ab5e08d0f071e929694a.html">Scenes</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">BaseScene.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">//</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment">// Created by lenovo on 2021/8/17.</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment">//</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#ifndef TEAMCURRICULUMDESIGN_MAP_H</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#define TEAMCURRICULUMDESIGN_MAP_H</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &quot;Objects/BaseObject.h&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &quot;../Actors/Player/BasePlayer.h&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &quot;../Utils/Math/Rectangle.h&quot;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &quot;../Actors/Mobs/BaseMob.h&quot;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &quot;../AI/MobAI.h&quot;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &quot;../Ui/Scenes/BaseSceneUi.h&quot;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#include &quot;Objects/Door.h&quot;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &lt;QOpenGLWidget&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &lt;QKeyEvent&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#include &lt;QTimer&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#include &lt;QOpenGLExtraFunctions&gt;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="keyword">using namespace </span>std;</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="keyword">class </span><a class="code hl_class" href="class_base_scene_ui.html">BaseSceneUi</a>;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="class_base_scene.html">   29</a></span><span class="keyword">class </span><a class="code hl_class" href="class_base_scene.html">BaseScene</a> : <span class="keyword">public</span> QObject {</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span>Q_OBJECT</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>    <span class="comment">/*！</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="comment">     * @brief 获取id，全局唯一</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="comment">     */</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>    <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;getId() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>    <span class="keyword">const</span> vector&lt;BaseObject *&gt; &amp;<a class="code hl_function" href="class_base_scene.html#afcc936f8eb745614fad819758daedbbc">getBehindSceneObjectList</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    <span class="keyword">const</span> vector&lt;BaseObject *&gt; &amp;<a class="code hl_function" href="class_base_scene.html#a438a2246655ffe9f0a30aef8f251da27">getFrontSceneObjectList</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>    <span class="keywordtype">int</span> <a class="code hl_function" href="class_base_scene.html#aa6b08a12fbb01e6f2bcb9d9dec2ac9bc">getWidth</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>    <span class="keywordtype">int</span> <a class="code hl_function" href="class_base_scene.html#a3eacca22ea35691939dab07a9e5530ca">getHeight</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>    <span class="keyword">const</span> <a class="code hl_class" href="class_base_player.html">BasePlayer</a> &amp;<a class="code hl_function" href="class_base_scene.html#a5d2453b2b66942a33c7bb7358db8b021">getPlayer</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>    <span class="keyword">const</span> vector&lt;BaseMob *&gt; &amp;<a class="code hl_function" href="class_base_scene.html#a60d59e5ddb243c9cb1d9a2f611d9ec7e">getMobs</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>    <span class="keyword">const</span> <a class="code hl_class" href="class_point.html">Point</a> &amp;<a class="code hl_function" href="class_base_scene.html#ad83e6226c3b717a884040efeed50b0c3">getShowPos</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>    <span class="comment">/*！</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span><span class="comment">     * @brief 前端指示的按键情况</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span><span class="comment">     */</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>    std::map&lt;int, bool&gt; keyPressedInfo;</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>    <span class="keywordtype">void</span> testForEndGame();</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>    <span class="keywordtype">int</span> player_death_time = 0;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>    QTimer *frameTimer = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>    QTimer *refreshTimer = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>    <a class="code hl_class" href="class_door.html">Door</a> *end_door = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>    <a class="code hl_class" href="class_base_scene_ui.html">BaseSceneUi</a> *show_ui;</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span>    std::string id;</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>    vector&lt;BaseObject *&gt; behindSceneObjectList;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>    vector&lt;BaseObject *&gt; frontSceneObjectList;</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span>    <span class="keywordtype">int</span> width, height;</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>    <a class="code hl_class" href="class_base_player.html">BasePlayer</a> player;</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>    vector&lt;BaseMob *&gt; mobs;</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>    <a class="code hl_class" href="class_point.html">Point</a> show_pos = <a class="code hl_class" href="class_point.html">Point</a>(0, 0);<span class="comment">//显示在屏幕的场景左下角位置</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>    std::map&lt;std::string, std::map&lt;std::string, bool&gt;&gt; ActorsAboveObjects;</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>    <a class="code hl_class" href="class_point.html">Point</a> playerRespawnPos;</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span> </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>    std::map&lt;std::string, MobAI&gt; MobAIMap;</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>    <span class="keyword">class </span><a class="code hl_class" href="class_rectangle.html">Rectangle</a> getScreenRecWithExtraEdge() const;</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>    <span class="keywordtype">void</span> playerEdgeTest();</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span> </div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span>    <span class="keywordtype">void</span> refreshPlayer(<span class="keyword">const</span> <a class="code hl_class" href="class_point.html">Point</a> &amp;player_pos, <span class="keywordtype">double</span> player_width, <span class="keywordtype">double</span> player_height);</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span> </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>    <span class="keywordtype">void</span> fillObjectsAndMobs();</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span> </div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span>    <span class="keywordtype">void</span> aboveTest(<span class="keyword">const</span> <a class="code hl_class" href="class_actor.html">Actor</a> &amp;actor);</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span> </div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span>    <span class="keywordtype">bool</span> behindObjectsTest(<span class="keyword">const</span> <a class="code hl_class" href="class_actor.html">Actor</a> &amp;actor) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span>    <span class="keywordtype">void</span> refreshObjects();</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span> </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="class_base_scene.html#acd980987b632a470838a62b1e1ff839f">onGround</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_actor.html">Actor</a> &amp;actor, <a class="code hl_class" href="class_base_object.html">BaseObject</a> **which = <span class="keyword">nullptr</span>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span> </div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span>    <span class="keywordtype">bool</span> isPlayerCanClimb() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span> </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span>    <span class="keywordtype">void</span> updateAllMovableObjects();</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span> </div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span>    <span class="keywordtype">bool</span> behindObjectTest(<span class="keyword">const</span> <a class="code hl_class" href="class_actor.html">Actor</a> &amp;actor, <span class="keyword">const</span> <span class="keyword">class</span> <a class="code hl_class" href="class_rectangle.html">Rectangle</a> &amp;actor_rec, <span class="keyword">const</span> <a class="code hl_class" href="class_base_object.html">BaseObject</a> *<span class="keywordtype">object</span>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span>    <a class="code hl_class" href="class_base_object.html">BaseObject</a> *nearestObject();</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span> </div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span>    <span class="keyword">explicit</span> <a class="code hl_class" href="class_base_scene.html">BaseScene</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_point.html">Point</a> &amp;playerRespawnPos, <a class="code hl_class" href="class_base_scene_ui.html">BaseSceneUi</a> *show_ui);</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span> </div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>    <a class="code hl_class" href="class_base_scene.html">~BaseScene</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span> </div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span> </div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span><span class="keyword">public</span> slots:</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno">  227</span>    <span class="keywordtype">void</span> <a class="code hl_slot" href="class_base_scene.html#a889d8e409b748d9af28dd0d547801bb9">start</a>(<span class="keywordtype">bool</span> = <span class="keyword">true</span>);</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span> </div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span>    <span class="keywordtype">void</span> <a class="code hl_slot" href="class_base_scene.html#a075145483ef42d5012b7519e37bd0a1a">pause</a>();</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno">  233</span> </div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span>    <span class="keywordtype">void</span> <a class="code hl_slot" href="class_base_scene.html#ae18694318eacca974fba5f4005bf44cf">updateScene</a>();</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span> </div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno">  239</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span>    <span class="keywordtype">bool</span> frontObjectsTest(<span class="keyword">const</span> <a class="code hl_class" href="class_actor.html">Actor</a> &amp;actor) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno">  246</span> </div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span>    <span class="keywordtype">bool</span> frontObjectTest(<span class="keyword">const</span> <a class="code hl_class" href="class_actor.html">Actor</a> &amp;actor, <span class="keyword">const</span> <span class="keyword">class</span> <a class="code hl_class" href="class_rectangle.html">Rectangle</a> &amp;actor_rec, <span class="keyword">const</span> <a class="code hl_class" href="class_base_object.html">BaseObject</a> *<span class="keywordtype">object</span>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno">  255</span> </div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno">  261</span>    <span class="keywordtype">bool</span> objectsTest(<span class="keyword">const</span> <a class="code hl_class" href="class_actor.html">Actor</a> &amp;actor) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span> </div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span>    <span class="keywordtype">void</span> doMobsAi();</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span> </div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span>    <span class="keywordtype">int</span> <a class="code hl_function" href="class_base_scene.html#aea3cba3d685d1efd2e4601c5581322f4">getPlayerDeathTime</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno">  274</span> </div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno">  276</span> </div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span>    <span class="keywordtype">void</span> playerAction(<a class="code hl_enumeration" href="class_actor.html#a2315aa20cdd86580a3936e58f796289a">Actor::Move_Type_X</a> &amp;typeX, <a class="code hl_enumeration" href="class_actor.html#aca69a1a886cbf8c0a9ac8998d59bd1ea">Actor::Move_Type_Y</a> &amp;typeY);</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno">  283</span> </div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span>    <span class="keywordtype">void</span> mobAction(<a class="code hl_class" href="class_base_mob.html">BaseMob</a> *);</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno">  291</span>    <span class="keywordtype">void</span> playerTryPick();</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno">  292</span> </div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno">  296</span>    <span class="keywordtype">void</span> playerTryDrop();</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno">  297</span> </div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span>    <span class="keyword">class </span><a class="code hl_class" href="class_rectangle.html">Rectangle</a> getScreenRec() const;</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span>};</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span> </div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span> </div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno">  306</span><span class="preprocessor">#endif </span><span class="comment">//TEAMCURRICULUMDESIGN_MAP_H</span></div>
<div class="ttc" id="aclass_actor_html"><div class="ttname"><a href="class_actor.html">Actor</a></div><div class="ttdoc">角色基类</div><div class="ttdef"><b>Definition:</b> Actor.h:18</div></div>
<div class="ttc" id="aclass_actor_html_a2315aa20cdd86580a3936e58f796289a"><div class="ttname"><a href="class_actor.html#a2315aa20cdd86580a3936e58f796289a">Actor::Move_Type_X</a></div><div class="ttdeci">Move_Type_X</div><div class="ttdoc">角色在水平方向移动的枚举类 LEFT : 向左移动 RIGHT : 向右移动 NONE_X : 水平方向不做出移动</div><div class="ttdef"><b>Definition:</b> Actor.h:270</div></div>
<div class="ttc" id="aclass_actor_html_aca69a1a886cbf8c0a9ac8998d59bd1ea"><div class="ttname"><a href="class_actor.html#aca69a1a886cbf8c0a9ac8998d59bd1ea">Actor::Move_Type_Y</a></div><div class="ttdeci">Move_Type_Y</div><div class="ttdoc">角色在竖直方向移动的枚举类 UP : 向上移动或跳跃 DOWN : 向下移动 NONE_Y : 竖直方向不做出移动</div><div class="ttdef"><b>Definition:</b> Actor.h:257</div></div>
<div class="ttc" id="aclass_base_mob_html"><div class="ttname"><a href="class_base_mob.html">BaseMob</a></div><div class="ttdoc">怪物类的基类</div><div class="ttdef"><b>Definition:</b> BaseMob.h:17</div></div>
<div class="ttc" id="aclass_base_object_html"><div class="ttname"><a href="class_base_object.html">BaseObject</a></div><div class="ttdoc">场景内物体基类</div><div class="ttdef"><b>Definition:</b> BaseObject.h:20</div></div>
<div class="ttc" id="aclass_base_player_html"><div class="ttname"><a href="class_base_player.html">BasePlayer</a></div><div class="ttdoc">玩家类</div><div class="ttdef"><b>Definition:</b> BasePlayer.h:17</div></div>
<div class="ttc" id="aclass_base_scene_html"><div class="ttname"><a href="class_base_scene.html">BaseScene</a></div><div class="ttdoc">逻辑场景类，后端</div><div class="ttdef"><b>Definition:</b> BaseScene.h:29</div></div>
<div class="ttc" id="aclass_base_scene_html_a075145483ef42d5012b7519e37bd0a1a"><div class="ttname"><a href="class_base_scene.html#a075145483ef42d5012b7519e37bd0a1a">BaseScene::pause</a></div><div class="ttdeci">void pause()</div><div class="ttdoc">暂停游戏</div><div class="ttdef"><b>Definition:</b> BaseScene.cpp:48</div></div>
<div class="ttc" id="aclass_base_scene_html_a3eacca22ea35691939dab07a9e5530ca"><div class="ttname"><a href="class_base_scene.html#a3eacca22ea35691939dab07a9e5530ca">BaseScene::getHeight</a></div><div class="ttdeci">int getHeight() const</div><div class="ttdoc">获取场景总高度</div><div class="ttdef"><b>Definition:</b> BaseScene.cpp:711</div></div>
<div class="ttc" id="aclass_base_scene_html_a438a2246655ffe9f0a30aef8f251da27"><div class="ttname"><a href="class_base_scene.html#a438a2246655ffe9f0a30aef8f251da27">BaseScene::getFrontSceneObjectList</a></div><div class="ttdeci">const vector&lt; BaseObject * &gt; &amp; getFrontSceneObjectList() const</div><div class="ttdoc">获取后景物体对象的std::vector</div><div class="ttdef"><b>Definition:</b> BaseScene.cpp:703</div></div>
<div class="ttc" id="aclass_base_scene_html_a5d2453b2b66942a33c7bb7358db8b021"><div class="ttname"><a href="class_base_scene.html#a5d2453b2b66942a33c7bb7358db8b021">BaseScene::getPlayer</a></div><div class="ttdeci">const BasePlayer &amp; getPlayer() const</div><div class="ttdoc">获取场景内的玩家角色</div><div class="ttdef"><b>Definition:</b> BaseScene.cpp:715</div></div>
<div class="ttc" id="aclass_base_scene_html_a60d59e5ddb243c9cb1d9a2f611d9ec7e"><div class="ttname"><a href="class_base_scene.html#a60d59e5ddb243c9cb1d9a2f611d9ec7e">BaseScene::getMobs</a></div><div class="ttdeci">const vector&lt; BaseMob * &gt; &amp; getMobs() const</div><div class="ttdoc">获取场景内的怪物的std::vector</div><div class="ttdef"><b>Definition:</b> BaseScene.cpp:719</div></div>
<div class="ttc" id="aclass_base_scene_html_a889d8e409b748d9af28dd0d547801bb9"><div class="ttname"><a href="class_base_scene.html#a889d8e409b748d9af28dd0d547801bb9">BaseScene::start</a></div><div class="ttdeci">void start(bool=true)</div><div class="ttdoc">启动游戏</div><div class="ttdef"><b>Definition:</b> BaseScene.cpp:32</div></div>
<div class="ttc" id="aclass_base_scene_html_aa6b08a12fbb01e6f2bcb9d9dec2ac9bc"><div class="ttname"><a href="class_base_scene.html#aa6b08a12fbb01e6f2bcb9d9dec2ac9bc">BaseScene::getWidth</a></div><div class="ttdeci">int getWidth() const</div><div class="ttdoc">获取场景总宽度</div><div class="ttdef"><b>Definition:</b> BaseScene.cpp:707</div></div>
<div class="ttc" id="aclass_base_scene_html_acd980987b632a470838a62b1e1ff839f"><div class="ttname"><a href="class_base_scene.html#acd980987b632a470838a62b1e1ff839f">BaseScene::onGround</a></div><div class="ttdeci">bool onGround(const Actor &amp;actor, BaseObject **which=nullptr) const</div><div class="ttdoc">角色是否在地面上</div><div class="ttdef"><b>Definition:</b> BaseScene.cpp:560</div></div>
<div class="ttc" id="aclass_base_scene_html_ad83e6226c3b717a884040efeed50b0c3"><div class="ttname"><a href="class_base_scene.html#ad83e6226c3b717a884040efeed50b0c3">BaseScene::getShowPos</a></div><div class="ttdeci">const Point &amp; getShowPos() const</div><div class="ttdoc">获取场景显示位置的左下角</div><div class="ttdef"><b>Definition:</b> BaseScene.cpp:723</div></div>
<div class="ttc" id="aclass_base_scene_html_ae18694318eacca974fba5f4005bf44cf"><div class="ttname"><a href="class_base_scene.html#ae18694318eacca974fba5f4005bf44cf">BaseScene::updateScene</a></div><div class="ttdeci">void updateScene()</div><div class="ttdoc">刷新场景</div><div class="ttdef"><b>Definition:</b> BaseScene.cpp:65</div></div>
<div class="ttc" id="aclass_base_scene_html_aea3cba3d685d1efd2e4601c5581322f4"><div class="ttname"><a href="class_base_scene.html#aea3cba3d685d1efd2e4601c5581322f4">BaseScene::getPlayerDeathTime</a></div><div class="ttdeci">int getPlayerDeathTime() const</div><div class="ttdoc">获取玩家死亡次数</div><div class="ttdef"><b>Definition:</b> BaseScene.cpp:755</div></div>
<div class="ttc" id="aclass_base_scene_html_afcc936f8eb745614fad819758daedbbc"><div class="ttname"><a href="class_base_scene.html#afcc936f8eb745614fad819758daedbbc">BaseScene::getBehindSceneObjectList</a></div><div class="ttdeci">const vector&lt; BaseObject * &gt; &amp; getBehindSceneObjectList() const</div><div class="ttdoc">获取前景物体对象的std::vector</div><div class="ttdef"><b>Definition:</b> BaseScene.cpp:699</div></div>
<div class="ttc" id="aclass_base_scene_ui_html"><div class="ttname"><a href="class_base_scene_ui.html">BaseSceneUi</a></div><div class="ttdoc">主场景前端</div><div class="ttdef"><b>Definition:</b> BaseSceneUi.h:18</div></div>
<div class="ttc" id="aclass_door_html"><div class="ttname"><a href="class_door.html">Door</a></div><div class="ttdoc">结束门</div><div class="ttdef"><b>Definition:</b> Door.h:13</div></div>
<div class="ttc" id="aclass_point_html"><div class="ttname"><a href="class_point.html">Point</a></div><div class="ttdoc">二维点</div><div class="ttdef"><b>Definition:</b> Point.h:18</div></div>
<div class="ttc" id="aclass_rectangle_html"><div class="ttname"><a href="class_rectangle.html">Rectangle</a></div><div class="ttdoc">矩形</div><div class="ttdef"><b>Definition:</b> Rectangle.h:13</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
